package org.springcloud.hystrix.service;

import org.springframework.stereotype.Component;

/**
 * @Description: 实现HystrixService类的接口，实现断路器的fallback方法
 * @author huangjd
 * @date 2018年1月4日
 */
@Component
public class HystrixErrorService implements HystrixService {

	@Override
	public String getHomeService(String name) {
		return "sorry,"+name;
	}

}
